<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<form action="<?php echo $form->getObject()->isNew() ? url_for("create_fiche_comment", array('id'=>$ktd_character->getId())) : "" ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
 
      <?php echo $form->renderHiddenFields(false) ?>
      
      <?php echo $form->renderGlobalErrors() ?>
      <?php echo $form['body']->renderLabel() ?>
      <div class="in">
          <?php echo $form['body'] ?>
          <?php if($form['body']->renderError() != NULL): ?>
              <div class="ui-state-error">
                <?php echo $form['body']->renderError() ?>
              </div>
          <?php endif;?>
      </div>
     <input class="btn primary" type="submit" value="Commenter"/>
</form>
